<template>
  <div class="max">
    <div class="top">
      <!-- icon图标 -->
      <van-icon class="iconone" name="wap-home-o" size="30px" />
      <span class="title">网易严选</span>
      <van-icon class="icontwo" name="search" />
      <van-badge :content="1">
        <van-icon class="iconthree" name="shopping-cart-o" />
      </van-badge>
    </div>
    <div class="ordertitle">
      <van-tabs v-model="active">
        <van-tab title="全部"><van-empty description="还没有任何订单呢" /></van-tab>
        <van-tab title="待付款"><van-empty description="还没有任何订单呢" /></van-tab>
        <van-tab title="待发货"><van-empty description="还没有任何订单呢" /></van-tab>
        <van-tab title="已发货"><van-empty description="还没有任何订单呢" /></van-tab>
        <van-tab title="待评价"><van-empty description="还没有任何订单呢" /></van-tab>
      </van-tabs>
    </div>
  </div>
</template>

<script>
// 引入使用徽标
import Vue from "vue";
import { Badge } from "vant";
Vue.use(Badge);
// 引入tab标签
import { Tab, Tabs } from "vant";
Vue.use(Tab);
Vue.use(Tabs);
// 引入空白
import { Empty } from 'vant';
Vue.use(Empty);




export default {
  name: "MyOrder",
  data(){
    return{
      active: 2,
    }
  }
};
</script>

<style lang="less" scoped>
.max {
  width: 100%;
  height: 100%;
  background-color: #eee;
  .top {
    width: 100%;
    height: 45.79px;
    background-color: #fff;
    border-bottom: 1px solid #ddd;
    .iconone {
      width: 32px;
      height: 32px;
      // background-position: 0 -0.74rem;
      padding: 8px 0 0 5px;
    }
    .title {
      text-align: center;
      line-height: 45.79px;
      height: 45.79px;
      font-weight: 700;
      padding-left: 110px;
      font-size: 20px;
      font-weight: 0;
    }
    .icontwo {
      font-size: 30px;
      padding-left: 70px;
    }
    .iconthree {
      font-size: 30px;
      padding-left: 10px;
    }
  }
  .ordertitle {
    width: 375px;
    height: 42px;
    margin-top: 2px;
  }
}
</style>
